package com.platform.service.impl;

import com.platform.dao.MerchantDao;
import com.platform.entity.MerchantEntity;
import com.platform.service.MerchantService;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 商城配置:商户通过列表
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-24 16:26:25
 */
@Service("merchantService")
public class MerchantServiceImpl implements MerchantService {
    @Autowired
    private MerchantDao merchantDao;

    @Override
    public MerchantEntity queryObject(Integer id) {
        return merchantDao.queryObject(id);
    }

    @Override
    public List<MerchantEntity> queryList(Map<String, Object> map) {
        return merchantDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return merchantDao.queryTotal(map);
    }

    @Override
    public int save(MerchantEntity merchant) {
        return merchantDao.save(merchant);
    }

    @Override
    public int update(MerchantEntity merchant) {
        return merchantDao.update(merchant);
    }

    @Override
    public int delete(Integer id) {
        return merchantDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return merchantDao.deleteBatch(ids);
    }

    @Override
    public List<MerchantEntity> queryMerchantList() {
        return merchantDao.queryMerchantList();
    }

    @Override
    public List<Map<String, Object>> queryListMap(Map<String, Object> param) {
        return merchantDao.queryListMap(param);
    }

    @Override
    public MerchantEntity queryObjectByUid(Integer userId) {
        return merchantDao.queryObjectByUid(userId);
    }
}
